<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class File_handler extends CI_Controller {

	public function __construct(){
		parent::__construct();
		// $this->load->library('file_manager');
	}

	/**
	 * Index Page for this controller.
	 */
	public function index()
	{
		$this->load->library('file_manager');
		$path = str_replace('/system','',BASEPATH);
		$path = $path.'frontend/assets/upload/';	
		$opt =  array(
			'uploads_access_dir' => $path
			);
		print_r($opt);
		$file_manager = new File_manager($opt);
	}	
	
}
